// 定义主题色变量
@primary-color: #1890ff;
@primary-light: #e6f7ff;
@primary-lighter: #f0f9ff;
@text-primary: #262626;
@text-secondary: #595959;
@text-light: #8c8c8c;
@border-color: #e8e8e8;
@shadow-color: rgba(24, 144, 255, 0.1);

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: #f5f5f5;
}

// 通用卡片样式
.section {
  margin-bottom: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px @shadow-color;
  overflow: hidden;
  padding: 24px;

  .sectionTitle {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    font-size: 24px;
    font-weight: 600;
    color: @text-primary;

    .anticon {
      margin-right: 12px;
      color: @primary-color;
      font-size: 28px;
    }
  }
}

// 基本信息样式
.avatarContainer {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(24, 144, 255, 0.15);

  .avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  :global {
    .ant-image {
      width: 100%;
      height: 100%;
    }

    .ant-image-mask {
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      transition: opacity 0.3s;

      &:hover {
        opacity: 1;
      }

      .anticon {
        font-size: 24px;
        color: #fff;
      }
    }
  }
}

.infoContent {
  padding: 0;

  .nameBlock {
    margin-bottom: 16px;

    h2 {
      font-size: 32px;
      font-weight: 600;
      margin: 0 0 8px;
      color: @text-primary;
    }

    .subName {
      display: flex;
      align-items: center;
      gap: 12px;

      .pinyin {
        font-size: 16px;
        color: @text-secondary;
        font-style: italic;
      }

      .englishName {
        font-size: 18px;
        color: @text-secondary;
        position: relative;
        padding-left: 12px;

        &::before {
          content: '';
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          width: 1px;
          height: 16px;
          background: @border-color;
        }
      }
    }
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;

    :global(.ant-tag) {
      margin: 0;
      padding: 4px 12px;
      border-radius: 12px;
    }
  }

  .description {
    font-size: 15px;
    line-height: 1.6;
    color: @text-secondary;
    margin-bottom: 16px;
  }

  .details {
    display: flex;
    flex-direction: column;
    gap: 8px;

    .detailItem {
      display: flex;
      align-items: center;
      color: @text-secondary;

      .anticon {
        color: @primary-color;
        margin-right: 8px;
      }
    }
  }
}

// 演艺生涯样式
.career {
  margin: -24px;
  padding: 24px;
  
  :global {
    .ant-timeline {
      padding-left: 16px;

      .ant-timeline-item {
        padding-bottom: 24px;
        padding-left: 0;

        &:last-child {
          padding-bottom: 0;
        }

        .ant-timeline-item-tail {
          border-left: 2px solid fade(@primary-color, 20%);
          left: 5px;
        }

        .ant-timeline-item-head {
          width: 12px;
          height: 12px;
          border: none;
          background: @primary-color;
          left: 0;
        }

        .ant-timeline-item-content {
          margin-left: 24px;
          margin-top: 0;
          padding-top: 0;
          min-height: auto;
        }
      }
    }
  }

  .milestoneContent {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    top: 0;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 8%);
    }

    .date {
      color: @primary-color;
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
      letter-spacing: 0.5px;
    }

    .description {
      font-size: 14px;
      line-height: 1.6;
      color: @text-secondary;
      margin-bottom: 10px;
    }

    .imageGrid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      margin-bottom: 10px;

      .imageWrapper {
        aspect-ratio: 1;
        border-radius: 4px;
        overflow: hidden;

        .milestoneImage {
          width: 100% !important;
          height: 100% !important;
          object-fit: cover;
          transition: transform 0.3s ease;

          &:hover {
            transform: scale(1.05);
          }
        }
      }
    }

    .videoGrid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 16px;

      .videoWrapper {
        position: relative;
        width: 100%;
        padding-top: 56.25%; // 16:9 宽高比
        border-radius: 8px;
        overflow: hidden;
        background: #000;

        > div {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

// 经典语录样式
.quote {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  height: 100%;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 8%);
  }

  .quoteContent {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
  }

  .quoteSource {
    text-align: right;
    color: #666;
    font-size: 14px;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .career {
    margin: -16px;
    padding: 16px;

    :global {
      .ant-timeline {
        padding-left: 12px;

        .ant-timeline-item {
          padding-bottom: 20px;

          .ant-timeline-item-tail {
            left: 4px;
          }

          .ant-timeline-item-head {
            width: 10px;
            height: 10px;
          }

          .ant-timeline-item-content {
            margin-left: 20px;
          }
        }
      }
    }

    .milestoneContent {
      padding: 12px;
      transition: all 0.3s ease;

      &:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 8%);
      }

      .date {
        font-size: 16px;
      }

      .description {
        font-size: 13px;
        margin-bottom: 8px;
        word-break: break-word;
      }

      .imageGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
      }

      .videoGrid {
        grid-template-columns: 1fr;
        gap: 12px;

        .videoWrapper {
          .videoThumbnail {
            .playIcon {
              font-size: 24px;
            }
          }
        }
      }

      &:hover {
        transform: none;
        box-shadow: none;
      }
    }
  }

  .avatarContainer {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
  }

  .infoContent {
    padding: 0 8px;

    .nameBlock {
      margin-bottom: 12px;
      padding: 0 2px;

      h2 {
        font-size: 24px;
        margin-bottom: 6px;
      }

      .subName {
        gap: 8px;

        .pinyin {
          font-size: 14px;
        }

        .englishName {
          font-size: 14px;
        }
      }
    }

    .tags {
      gap: 4px;
      margin-bottom: 10px;
      padding: 0 2px;

      :global(.ant-tag) {
        padding: 2px 8px;
        margin: 0;
      }
    }

    .description {
      font-size: 14px;
      margin-bottom: 10px;
      padding: 0 2px;
    }

    .details {
      gap: 6px;
      padding: 0 2px;

      .detailItem {
        font-size: 13px;
      }
    }
  }

  .quote {
    padding: 12px 8px;
    margin: 0 -4px;

    .quoteContent {
      font-size: 14px;
    }

    .quoteSource {
      font-size: 12px;
    }
  }

  .honors {
    .honorCategory {
      margin-bottom: 24px;

      .categoryTitle {
        font-size: 16px;
        margin-bottom: 16px;
      }

      .honorItem {
        padding: 12px 8px !important;
        margin: 0 -4px;

        .honorName {
          font-size: 14px;
        }

        .honorCount {
          font-size: 20px;
        }
      }
    }
  }

  .hobbyItem {
    padding: 12px 8px;
    margin: 0 -4px;

    .hobbyIcon {
      width: 40px;
      height: 40px;
      font-size: 20px;
      margin-right: 12px;
    }

    .hobbyInfo {
      .hobbyName {
        font-size: 14px;
      }

      .hobbyDesc {
        font-size: 12px;
      }
    }
  }

  :global {
    .ant-row {
      margin-right: 0 !important;
      margin-left: 0 !important;
      
      > .ant-col {
        padding-right: 0 !important;
        padding-left: 0 !important;
      }
    }
  }
} 

// 技能特长样式
.skills {
  .skillCategory {
    margin-bottom: 40px;

    &:last-child {
      margin-bottom: 0;
    }

    .categoryTitle {
      display: flex;
      align-items: center;
      margin-bottom: 24px;
      font-size: 18px;
      font-weight: 500;
      color: @text-primary;

      .anticon {
        margin-right: 8px;
        color: @primary-color;
      }
    }

    .skillItem {
      background: @primary-lighter;
      padding: 16px;
      border-radius: 12px;
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px @shadow-color;
      }

      .skillInfo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;

        .skillName {
          color: @text-primary;
          font-weight: 500;
        }

        .skillPercent {
          color: @primary-color;
          font-weight: 500;
        }
      }

      :global {
        .ant-progress-outer {
          margin: 0;
        }
        
        .ant-progress-inner {
          background-color: fade(@primary-color, 10);
        }
      }
    }
  }
}

// 响应式调整
@media (max-width: 768px) {
  .skills {
    .skillCategory {
      margin-bottom: 32px;

      .categoryTitle {
        font-size: 16px;
        margin-bottom: 16px;
      }

      .skillItem {
        padding: 12px;

        .skillInfo {
          margin-bottom: 8px;
        }
      }
    }
  }
} 

// 修改标题样式 - 增加标间距
.sectionTitle {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 600;

  .anticon {
    color: @primary-color;
    font-size: 28px;
    margin-right: 24px;
  }

  span {
    color: @primary-color;
  }
}

// 荣誉样式（替换原achievements样式）
.honors {
  .honorCard {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 16px rgba(24, 144, 255, 0.1);

      .honorIcon {
        transform: scale(1.05);
      }
    }

    :global {
      .ant-card-body {
        padding: 0;
      }
    }
  }

  .honorIcon {
    height: 80px;
    background: linear-gradient(135deg, #e6f7ff 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    .anticon {
      font-size: 32px;
      color: @primary-color;
    }
  }

  .honorContent {
    padding: 16px 20px;
    text-align: left;
    background: #fff;

    .honorName {
      font-size: 16px;
      font-weight: 600;
      color: @text-primary;
      margin: 0 0 8px;
      line-height: 1.4;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .honorDate {
      font-size: 13px;
      color: @text-secondary;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;

      .anticon {
        color: @primary-color;
        font-size: 13px;
      }
    }

    .honorDesc {
      color: @text-light;
      font-size: 13px;
      line-height: 1.6;

      p {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
      }
    }
  }
}

// 响应式调整
@media (max-width: 768px) {
  .honors {
    .honorIcon {
      height: 60px;

      .anticon {
        font-size: 28px;
      }
    }

    .honorContent {
      padding: 12px 16px;

      .honorName {
        font-size: 15px;
        margin-bottom: 6px;
      }

      .honorDate {
        font-size: 12px;
        margin-bottom: 6px;
      }

      .honorDesc {
        font-size: 12px;
      }
    }
  }
}

.loadMore {
  text-align: center;
  margin-top: 32px;
  
  .ant-btn-link {
    font-size: 14px;
    padding: 8px 24px;
    height: auto;
    
    &:hover {
      color: @primary-color;
      opacity: 0.8;
    }
  }
}

// 响应式调整
@media (max-width: 768px) {
  .loadMore {
    .ant-btn-link {
      font-size: 14px;
      
      &:hover {
        opacity: 0.8;
      }
    }
  }
} 

// 兴趣爱好样式
.hobbyItem {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, @primary-lighter 0%, white 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid fade(@primary-color, 10);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px @shadow-color;
  }

  .hobbyIcon {
    font-size: 32px;
    margin-right: 16px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px @shadow-color;
  }

  .hobbyInfo {
    flex: 1;

    .hobbyName {
      font-size: 16px;
      font-weight: 500;
      color: @text-primary;
      margin-bottom: 4px;
    }

    .hobbyDesc {
      font-size: 14px;
      color: @text-secondary;
      line-height: 1.6;
    }
  }
}

// 响应式调整
@media (max-width: 768px) {
  .sectionTitle {
    .anticon {
      margin-right: 16px;
    }
  }

  .hobbyItem {
    padding: 16px;

    .hobbyIcon {
      font-size: 24px;
      width: 48px;
      height: 48px;
      margin-right: 12px;
    }

    .hobbyInfo {
      .hobbyName {
        font-size: 15px;
      }

      .hobbyDesc {
        font-size: 13px;
      }
    }
  }
} 

// 添加加载更多按钮样式
.loadMore {
  text-align: center;
  margin-top: 24px;
  
  .ant-btn-link {
    font-size: 14px;
    
    &:hover {
      opacity: 0.8;
    }
  }
} 

.honorItem {
  .honorTitle {
    font-size: 16px;
    font-weight: 500;
    color: @text-primary;
    margin-bottom: 8px;
  }

  .honorDate {
    font-size: 14px;
    color: @text-secondary;
    margin-bottom: 8px;
  }

  .honorDesc {
    font-size: 14px;
    color: @text-light;
    line-height: 1.5;
  }
}

.loadMore {
  text-align: center;
  margin-top: 24px;
  
  .ant-btn-link {
    font-size: 14px;
    
    &:hover {
      opacity: 0.8;
    }
  }
} 

// 添加视频弹窗样式
.videoModal {
  :global {
    .ant-modal-content {
      padding: 0;
      background: #000;
    }
    
    .ant-modal-close {
      color: #fff;
      
      &:hover {
        color: #fff;
        opacity: 0.8;
      }
    }
    
    .ant-modal-body {
      padding: 0;
      line-height: 0;
      
      > div {
        aspect-ratio: 16/9;
      }
    }
  }
} 